<script type="text/javascript">
function clearTransAccountTradeSearch() {
	setGridSearchParams('transAccountTrade_list','transAccountTradeSearchForm',true,reloadTransAccountTrade);
}

//根据条件查询
function transAccountTradeSearch() {
	setGridSearchParams('transAccountTrade_list','transAccountTradeSearchForm',false,reloadTransAccountTrade);
}

//表格查询  
function reloadTransAccountTrade() {
	var params = transAccountTrade_list.datagrid('options').queryParams; //先取得 datagrid 的查询参数  
	printLog(params);
	transAccountTrade_list.datagrid('reload'); //设置好查询参数 reload 一下就可以了  
	transAccountTrade_list.datagrid('unselectAll');
	transAccountTrade_list.datagrid('uncheckAll');
}
</script>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
		<@eu.datagrid id="transAccountTrade_list" toolbar="#transAccountTradelist_search" idField="id" operations="${operations!}"
			 url="transAccountTrade.do?loadList&accountId=${(transAccountItem.id)!}" rownumbers="true"
			 item="com.xdtech.trans.vo.TransAccountTradeItem"/>
		
		<div id="transAccountTradelist_search">
			<div style="margin-bottom:5px;padding-left:5px;margin-top: 5px;">
				<form id="transAccountTradeSearchForm">
					<table>
						<tr>
							<td class="tbLabel">网点名称：</td>
							<td>
								<@eu.comboBox url="transWebSite.do?loadWebsiteCombox&value=${(transAccountItem.websiteId)!}" name="websiteId" />
							</td>
							<td class="tbLabel">交易日期从：</td>
							<td>
								<input name="tradeDateFrom" style="width:160px;" class="easyui-datebox" />
							</td>
							<td class="tbLabel">交易日期到：</td>
							<td>
								<input name="tradeDateEnd" style="width:160px;" class="easyui-datebox" />
							</td>
							<td rowspan="2">
								<@eu.linkbutton showName="查询" iconCls="icon-search" onclick="transAccountTradeSearch()"/>
	 					 		<@eu.linkbutton showName="清空" iconCls="icon-clear" onclick="clearTransAccountTradeSearch()"/>
 					 		</td>
						</tr>
						<tr>
							<td>经办人：</td>
							<td>
								<input name="operator"  class="easyui-validatebox textbox" />
							</td>
							<td>交易类型：</td>
							<td>
								<@eu.comboBox name="tradeType" url="common.do?loadComboBox&key=TRADE_TYPE"  />
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</div>